﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace QLHD.Controls.QLHD
{
    public partial class Add : System.Web.UI.UserControl
    {
        public int Role = 0;
        protected string strButton = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {

            if (HttpContext.Current.Session["Role"] != null)
            {
                Role = HttpContext.Current.Session["Role"].ChangeType<Int32>();

                StringBuilder sb = new StringBuilder();
                sb.Append("<button class=\"btn btn-primary btnLuuHopDong\" type=\"button\" onclick=\"QLHD.Actions.LuuHopDong()\">Lưu</button>&nbsp;");
                sb.Append("<button class=\"btn btn-danger btnHuyHopDong\" type=\"button\" onclick=\"QLHD.Actions.HuyHopDong('back',0)\"></button>");

                strButton = sb.ToString();
            }

        }
    }
}